package com.senven.payorder.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.senven.common.entity.Paymodel;
import com.senven.common.vo.CommonResult;
import com.senven.payorder.mapper.PaymodelMapper;
import com.senven.payorder.service.IPaymodelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zsy
 * @since 2022-09-06
 */
@Service
public class PaymodelServiceImpl extends ServiceImpl<PaymodelMapper, Paymodel> implements IPaymodelService {

    @Autowired
    private PaymodelMapper paymodelMapper;

    @Override
    public CommonResult findAll() {

        QueryWrapper<Paymodel> wrapper = new QueryWrapper();
        List<Paymodel> list = paymodelMapper.selectList(wrapper);
        return new CommonResult(2000,"查询成功",list);
    }
}
